package com.zbkj.crmeb.chant.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@JsonIgnoreProperties(ignoreUnknown = true)
public class AssistantListVo implements Serializable {

    @ApiModelProperty(value = "list")
    private List<WechatUserInfo> list;

    @ApiModelProperty(value = "总数")
    private Integer count;

    @ApiModelProperty(value = "最大数")
    private Integer maxCount;

    @ApiModelProperty(value = "错误码")
    private Integer errcode;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class WechatUserInfo {

        @JsonProperty(value = "时间戳")
        private Integer timestamp;

        @ApiModelProperty(value = "头像")
        private String headimg;

        @ApiModelProperty(value = "小助手昵称")
        private String nickname;

        @ApiModelProperty(value = "微信号")
        private String alias;

        @ApiModelProperty(value = "openid")
        private String openid;

    }

}